package com.user.mapper;

import com.user.pojo.dto.UserDto;
import com.user.pojo.entity.User;
import com.user.pojo.vo.UserVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    Integer insertUser(User user);

    @Select("select user_name as userName,sex,image from user where user_id=#{userId}")
    UserVo selectUserDetail(long useId);

    @Delete("delete from user where user_id=#{userId} ")
    Integer delete(long userId);


    UserVo selectUeser(Long invite);
}
